import java.util.Scanner;
public class Solution {
    public static String method(String number_s, int a ){
        String result = "";
        int count = 0;
        for(int i=0; i<number_s.length()-1;i++){
            if(number_s.charAt(i)<=number_s.charAt(i+1) && count<a){
                count++;
                continue;
            }
            result+=number_s.charAt(i);
        }
        result = result+number_s.charAt(number_s.length()-1);
        if(count<a){
            result = result.substring(0,result.length()-(a-count));
        }
        return result;
    }
    public static void main(String args[]){
//       Scanner s = new Scanner(System.in);
//       String number = s.nextLine();
//       int a = s.nextInt();


        String number = "93024";
        int a = 2;
        System.out.println(method(number, a));

    }

}

